<?php
/* @var $this UserController */
/* @var $model User */
$this->main_menu = MenuHelper::getArrayForMainMenu(true, false, false);
?>

<?php
$this->widget('bootstrap.widgets.TbTabs', array(
	'type'=>'tabs', // 'tabs' or 'pills'
	'tabs'=> array(
		array('label'=>'Alle Kunden', 'url'=>$this->createUrl('user/admin'), 'active'=>true),
        	array('label'=>'NEU', 'url'=>$this->createUrl('user/create')),
//                array('label'=>'|', 'url'=>$this->createUrl('user/admin'), 'active'=>false, 'itemOptions'=>array('class'=>'disabled')),
            array('label'=>'Stammdaten', 'url'=>$this->createUrl('user/admin'), 'active'=>false, 'itemOptions'=>array('class'=>'disabled')),
            array('label'=>'Info', 'url'=>$this->createUrl('user/admin'), 'active'=>false, 'itemOptions'=>array('class'=>'disabled')),
            array('label'=>'Rechnungsadressen', 'url'=>$this->createUrl('user/admin'), 'active'=>false, 'itemOptions'=>array('class'=>'disabled')),
            array('label'=>'Kurse', 'url'=>$this->createUrl('user/admin'), 'active'=>false, 'itemOptions'=>array('class'=>'disabled')),
//                array('label'=>'|', 'url'=>$this->createUrl('user/admin'), 'active'=>false, 'itemOptions'=>array('class'=>'disabled')),
	),
));
?>

<?php
$this->widget('bootstrap.widgets.TbExtendedGridView', array(
    'filter'=>$model,
    'fixedHeader' => false,
    'headerOffset' => 40, // 40px is the height of the main navigation at bootstrap
    'type'=>'striped bordered',
    'dataProvider' => $model->search(),
    'template' => '{items}{pager}', // 2nd way
//    'template' => "{items}",
	'columns'=>array(
		'user_id',
		'last_name',
		'first_name',
                'address',
                'postcode',
                'place',
            array (
                'class'=>'CButtonColumn',
                'template'=>'{update}{delete}',
	            'buttons'=>array(
	            	'update'=>array(
	            		'imageUrl'=>Yii::app()->request->baseUrl.'/images/update.png',
	            	),
	            	'delete'=>array(
	            		'imageUrl'=>Yii::app()->request->baseUrl.'/images/delete.png',
	            	),
	            ),
            ),
	),
));
?>



